import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { UserModule } from './user/user.module';
import Configuraion from './configuraion';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LogsModule } from './logs/logs.module';
import { connectParams } from './ormconfig';
import { AuthModule } from './auth/auth.module';
@Module({
  imports: [
    ConfigModule.forRoot({
      isGlobal: true,
      load: [Configuraion]
    }),
    TypeOrmModule.forRoot(connectParams),
    UserModule,
    LogsModule,
    AuthModule],
  controllers: [],
  providers: [],
  exports: []
})
export class AppModule {}
